package com.runen.wnhz.runen.service;

import com.runen.wnhz.runen.data.entity.BaseEntity;
import com.runen.wnhz.runen.data.entity.ShopDetail;
import com.runen.wnhz.runen.data.entity.ShopInfo;
import com.runen.wnhz.runen.data.entity.ShopListEntity;
import com.runen.wnhz.runen.data.entity.ShopTypeEntity;

import java.util.List;
import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2018/5/31 0031.
 */

public interface PublicmApi {
    /**
     * 获取店铺列表
     */
    @FormUrlEncoded
    @POST("Shopdata_getShopdata")
    Observable<BaseEntity<ShopListEntity<List<ShopInfo>>>> getShopList(@FieldMap Map<String, String> params);

    /**
     * 店铺类型
     *
     * @param params
     * @return
     */
    @FormUrlEncoded
    @POST("Shopdata_getShoptype")
    Observable<BaseEntity<List<ShopTypeEntity>>> getShopTypeApi(@FieldMap Map<String, String> params);

    /**
     * 店铺详情
     *
     * @param map
     * @return
     */
    @FormUrlEncoded
    @POST("Shopdata_getShopdataList")
    Observable<BaseEntity<ShopDetail>> getShopDetail(@FieldMap Map<String, String> map);
}
